package com.efast.dmom.mgmt.service.master.impl;

import java.util.List;

import com.efast.dmom.mgmt.dao.master.TmBasPlantDao;
import com.efast.dmom.mgmt.entity.master.TmBasPlant;
import com.efast.dmom.mgmt.service.master.TmBasPlantService;
import com.efast.dmom.mgmt.utils.Assist;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TmBasPlantServiceImpl implements TmBasPlantService {
	@Autowired
	private TmBasPlantDao tmBasPlantDao;

	@Override
	public long getTmBasPlantRowCount(Assist assist) {
		return tmBasPlantDao.getTmBasPlantRowCount(assist);
	}

	@Override
	public List<TmBasPlant> selectTmBasPlant(Assist assist) {
		return tmBasPlantDao.selectTmBasPlant(assist);
	}

	@Override
	public TmBasPlant selectTmBasPlantByObj(TmBasPlant obj) {
		return tmBasPlantDao.selectTmBasPlantByObj(obj);
	}

	@Override
	public TmBasPlant selectTmBasPlantById(Integer id) {
		return tmBasPlantDao.selectTmBasPlantById(id);
	}

	@Override
	public int insertTmBasPlant(TmBasPlant value) {
		return tmBasPlantDao.insertTmBasPlant(value);
	}

	@Override
	public int insertNonEmptyTmBasPlant(TmBasPlant value) {
		return tmBasPlantDao.insertNonEmptyTmBasPlant(value);
	}

	@Override
	public int insertTmBasPlantByBatch(List<TmBasPlant> value) {
		return tmBasPlantDao.insertTmBasPlantByBatch(value);
	}

	@Override
	public int deleteTmBasPlantById(Integer id) {
		return tmBasPlantDao.deleteTmBasPlantById(id);
	}

	@Override
	public int deleteTmBasPlant(Assist assist) {
		return tmBasPlantDao.deleteTmBasPlant(assist);
	}

	@Override
	public int updateTmBasPlantById(TmBasPlant enti) {
		return tmBasPlantDao.updateTmBasPlantById(enti);
	}

	@Override
	public int updateTmBasPlant(TmBasPlant value, Assist assist) {
		return tmBasPlantDao.updateTmBasPlant(value, assist);
	}

	@Override
	public int updateNonEmptyTmBasPlantById(TmBasPlant enti) {
		return tmBasPlantDao.updateNonEmptyTmBasPlantById(enti);
	}

	@Override
	public int updateNonEmptyTmBasPlant(TmBasPlant value, Assist assist) {
		return tmBasPlantDao.updateNonEmptyTmBasPlant(value, assist);
	}

	public TmBasPlantDao getTmBasPlantDao() {
		return this.tmBasPlantDao;
	}

	public void setTmBasPlantDao(TmBasPlantDao tmBasPlantDao) {
		this.tmBasPlantDao = tmBasPlantDao;
	}

}